home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / water_ba.swf / scripts / frame_2 / DoAction_2.as next >
Text File  |  2007-03-20  |  2KB  |  61 lines

  1. _root.registeredgame = true;
  2. _root.echoice = "girl_temp";
  3. _root._quality = "LOW";
  4. _root.currentlevel = 1;
  5. menu.currentup = false;
  6. sign.removeMovieClip();
  7. crowint.clearInterval();
  8. _root.clearInterval(gametime);
  9. gametime.clearInterval();
  10. stop();
  11. movieclip.prototype.loader = function()
  12. {
  13.    if(!this.init)
  14.    {
  15.       this.total = int(_root.getBytesTotal() / 1000);
  16.       _root.part = 1;
  17.       this.init = true;
  18.    }
  19.    this.info = "Total 969kb Loaded " + _root.percent;
  20.    this.count = g++;
  21.    this.download = int(_root.getBytesLoaded() / 1000);
  22.    this.bytesleft = _root.getBytesTotal() - _root.getBytesLoaded() + " bytes";
  23.    _root.percent = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100) + " %";
  24.    _root.percent2 = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
  25.    this.frame = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
  26.    this.total = int(_root.getBytesTotal() / 1000);
  27.    this.loader.gotoAndPlay(_root.percent2);
  28.    this.interval = function()
  29.    {
  30.       _root.play();
  31.    };
  32.    if(this.total <= this.download)
  33.    {
  34.       _root.gotoAndStop("logos");
  35.       delete _root.onEnterFrame;
  36.       delete loadlogo.onEnterFrame;
  37.    }
  38.    else
  39.    {
  40.       _root.stop();
  41.    }
  42. };
  43. _root.onEnterFrame = function()
  44. {
  45.    barz.loader();
  46. };
  47. movieclip.prototype.introwobbler = function(tempo, dim, ddim, adder, adder2)
  48. {
  49.    this.originy = adder2;
  50.    this._y = this.originy + adder + dim + ddim * Math.sin(this.i * 3.141592653589793 / 180);
  51.    this.i += tempo;
  52.    if(this.i >= 360)
  53.    {
  54.       this.i = 0;
  55.    }
  56. };
  57. loadlogo.onEnterFrame = function()
  58. {
  59.    this.introwobbler(10,3,5,40,20);
  60. };
  61.